<?php

class Score_Form_CommentKind extends Sfs_Form
{

    public function init()
    {
        $this->setMethod('post');
        $this->setName('commentKindForm');
//        $this->addElement('text', 'sn', array(
//            'label'      => 'sn',
//            'required'   => false,
//            'filters'    => array('StringTrim'),
//          'validators' => array('int')
//        )
//        );
        $this->addElement('text','name',array(
            'label' =>'name',
             'required'   => true,
            'filters'    => array('StringTrim'),
            'validators' => array(array('stringLength', true, array(2,60)))
        ));
      $this->getElement('name')->getValidator('stringLength')->setEncoding('UTF8');

    $this->addElement('submit','commentKindBtn',array(
            'label' =>'save',
        ));
    }
}